/*
PearReview - The peer review assistant.
Copyright (C) 2009  Dimitrij Pankratz, Anton Musichin
http://www.pearreview.com, info@pearreview.com

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

package com.pearreview.util.review;

import com.pearreview.util.review.Attendee;

public class AvailableAttendee extends Attendee {
	
	private static final long serialVersionUID = -5726291895686183421L;
	
	private Attendee attendee;
	private Long preparationTime;
	
	public AvailableAttendee(Attendee attendee) throws NullPointerException {
		this.attendee = attendee;
	}

	@Override
	public String getId() {
		return this.attendee.getId();
	}
	@Override
	public void setId(String id) {
		this.attendee.setId(id);
	}
	
	@Override
	public AttendeeRole getRole() {
		return this.attendee.getRole();
	}
	@Override
	public void setRole(AttendeeRole role) {
		this.attendee.setRole(role);
	}
	
	@Override
	public String getName() {
		return this.attendee.getName();
	}
	@Override
	public void setName(String name) {
		this.attendee.setName(name);
	}
	
	@Override
	public String getContact() {
		return this.attendee.getContact();
	}
	@Override
	public void setContact(String contact) {
		this.attendee.setContact(contact);
	}
	
	@Override
	public void setAspects(IdList<Aspect> aspects) {
		this.attendee.setAspects(aspects);
	}
	@Override
	public IdList<Aspect> getAspects() {
		return attendee.getAspects();
	}
	
	public void setPreparationTime(Long preperationTime) {
		this.preparationTime = preperationTime;
	}
	public Long getPreparationTime() {
		return preparationTime;
	}
	
	public Attendee getAttendee() {
		return this.attendee;
	}
	public void setAttendee(Attendee attendee) {
		this.attendee = attendee;
	}
	
	@Override
	public boolean equals(Object obj) {
		return this == obj;
	}
	
	@Override
	public String toString() {
		return "[id: " + getId() + ", "
				+ "name: " + getName() + ", "
				+ "contact: " + getContact() + ", "
				+ "role: " + getRole() + ", "
				+ "preperationTime: " + getPreparationTime() + "]";
	}
}
